// pages/group1/group1.js
var app = getApp();
var userlist = [{headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第一个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第二个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第三个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第四个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第二个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第三个'},
                {headimg:'https://www.juquduo.com/static/resourse/newar/下一步.png',username:'第五个'},];
var list = new Array

Page({
  /**
   * 页面的初始数据
   */
  data: {
    boxhei:app.globalData.winheight/2-50,
    userlist:[],
    shiliebiao:true,
    imagepath:'https://www.juquduo.com/static/resourse/yeshou/头像-1.png',
    username:'',
    headimg:''
  },

  onLoad: function (options) {
    var that = this
    // console.log(touxiang)
    // var user = {'username':options.name,
    //             'headimg':options.headimg}
    // list.push(user)
    // that.setData({userlist:list})

    wx.request({
      url: 'https://www.juquduo.com/juquduo/join_activity/company_show_users',
      data:{
        // activityId:options.id
        activityId:'14'
      },
      success(res){
        console.log(res.data)
        that.setData({userlist:res.data})
      }
    })
  },
  
  zhuye(){
    wx.navigateTo({
      url: '../ayeshou/yeshou',
    })
  },

})